/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wanhai.itm.controller;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zkmax.zul.Navitem;
import org.zkoss.zul.Messagebox;

/**
 *
 * @author Richard Shih
 */
public class SiderbarController extends SelectorComposer<Component>{
    @Wire
    private Navitem navItemAbout;

    @Override
    public void doAfterCompose(Component comp) throws Exception {
       System.out.println("Component composed!");
       
    }
    
    @Listen("onClick=#navItemAbout")
    private void onNavItemAboutClick(){
        Clients.showNotification("(C)2014 WHL Web Team",true);
        Messagebox.show("(C)2014 WHL Web Team","Information",Messagebox.OK,Messagebox.INFORMATION);
    }
}
